{% extends "base.html" %}
{% block title %}mm比例查询{% endblock %}
{% block content %}
    <table class="staff_table">
        <caption>mm比例</caption>
        <tr class="row_head">
            <th class="st_group">组名</th>
            <th class="st_ratio">人数</th>
        </tr>
        {% for rec in record %}
        <tr class="row_{{loop.cycle('odd','even')}}">
            <td>
                {% if rec['group_name']%}
                    {{rec['group_name']}}
                {% elif loop.revindex0 == 0 %}
                    合计
                {% else %}
                    未分组
                {% endif %}
            </td>
            <td>{{rec['ratio']}}</td>
        </tr>
        {% endfor %}
    </table>
{% endblock %}
